package br.unicentro.lynx.model.pojo;

import java.sql.Date;

public class Loan {
	private Integer id_loan;
	private Integer id_book_loan;
	private Integer id_student_loan;
	private Date date_loan_loan;
	private Date date_return_loan;

	public Loan() {

	}

	public Loan(Integer id_book_loan, Integer id_student_loan,
			Date date_loan_loan, Date date_return_loan) {
		this.id_book_loan = id_book_loan;
		this.id_student_loan = id_student_loan;
		this.date_loan_loan = date_loan_loan;
		this.date_return_loan = date_return_loan;
	}

	public Loan(Integer id_loan, Integer id_book_loan, Integer id_student_loan,
			Date date_loan_loan, Date date_return_loan) {
		this.id_loan = id_loan;
		this.id_book_loan = id_book_loan;
		this.id_student_loan = id_student_loan;
		this.date_loan_loan = date_loan_loan;
		this.date_return_loan = date_return_loan;
	}

	public Integer getIdLoan() {
		return id_loan;
	}

	public void setIdLoan(Integer id_loan) {
		this.id_loan = id_loan;
	}

	public Integer getIdBookLoan() {
		return id_book_loan;
	}

	public void setIdBookLoan(Integer id_book_loan) {
		this.id_book_loan = id_book_loan;
	}

	public Integer getIdStudentLoan() {
		return id_student_loan;
	}

	public void setIdStudentLoan(Integer id_student_loan) {
		this.id_student_loan = id_student_loan;
	}

	public Date getDateLoanLoan() {
		return date_loan_loan;
	}

	public void setDateLoanLoan(Date date_loan_loan) {
		this.date_loan_loan = date_loan_loan;
	}

	public Date getDateReturnLoan() {
		return date_return_loan;
	}

	public void setDateReturnLoan(Date date_return_loan) {
		this.date_return_loan = date_return_loan;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("LoanController [id_loan=").append(id_loan)
				.append(", id_book_loan=").append(id_book_loan)
				.append(", id_student_loan=").append(id_student_loan)
				.append(", date_loan_loan=").append(date_loan_loan)
				.append(", date_return_loan=").append(date_return_loan)
				.append("]");
		return builder.toString();
	}
}
